# == Schema Information
#
# Table name: basetables
#
#  id         :integer(4)      not null, primary key
#  name       :string(255)
#  content    :text
#  created_at :datetime
#  updated_at :datetime
#

class Basetable < ActiveRecord::Base
  named_scope :firend_link  ,:conditions => ["name = '友情链接'"]
  named_scope :copyright   ,:conditions => ["name = '版权信息'"]
  named_scope :introduction  ,:conditions => ["name = '网站介绍'"]
  named_scope :home  ,:conditions => ["name = '首页介绍'"]
  named_scope :big_event  ,:conditions => ["name = '重大事项'"]
  named_scope :product_hotword  ,:conditions => ["name = '产品热门关键字'"]
  named_scope :news_hotword  ,:conditions => ["name = '文章热门关键字'"]
  
end
